package com.wwj.core.wawa.entity.mapper;

import com.wwj.core.wawa.entity.RoomPlayer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoomPlayerMapper {
    void insertRoomPlayer(RoomPlayer roomPlayer);

    void deleteRoomPlayerByRoomIdAndPlayerId(@Param("roomId") Integer roomId, @Param("playerId") Integer playerId);

    List<RoomPlayer> selectRoomPlayerByRoomIdAndPlayerId(@Param("roomId") Integer roomId, @Param("playerId") Integer playerId);

    List<RoomPlayer> selectRoomPlayerByPlayerId(Integer playerId);
}
